//
// Created by Tian on 25-5-2.
//

#ifndef ESP32_FAN_LCD_SUPPORT_H
#define ESP32_FAN_LCD_SUPPORT_H




void lcd_basic_io_init(void);

void lcd_set_backlight(int state);
void lcd_set_rst(int sta);
void lcd_set_dc(int sta);

void spi_send_cmd(uint8_t reg, uint8_t len, uint8_t* arg);

void LCD_WR_REG(uint8_t reg);
void LCD_WR_Byte(uint8_t dat);
void LCD_WR_HalfWord(uint16_t dat);
void LCD_WR_DATA(int len, const uint8_t *dat );


#endif //ESP32_FAN_LCD_SUPPORT_H
